]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Rename _onoffAction to _onOffAction
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 17 Feb 2014 12:03:25 +0000 (12:03 +0000)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 17 Feb 2014 12:08:40 +0000 (12:08 +0000)
It was just a typo that this patch now corrects.

https://bugzilla.gnome.org/show_bug.cgi?id=723684

js/ui/status/location.js

index 9f19cd9bdd42db5ecaef54a0c28e0898da0eab1a..fa0f4c7c8fa337708be99bd21aa3f3e6e44afeb5 100644 (file)
@@ -67,7 +67,7 @@ const Indicator = new Lang.Class({
                           '/org/freedesktop/GeoClue2/Agent/' + uid);
 
         this._item.status.text = _("On");
-        this._onoffAction = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, this._onOnOffAction));
+        this._onOffAction = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, this._onOnOffAction));
 
         this._accurateItem = new PopupMenu.PopupMenuItem(_("Accurate (GPS + Network)"), false);
         this._accurateItem.connect('activate', Lang.bind(this, this._onAccurateItemActivated));
@@ -236,12 +236,12 @@ const Indicator = new Lang.Class({
             return;
 
         if (this._availableAccuracyLevel < AccuracyLevel.EXACT) {
-            this._onoffAction.actor.show();
+            this._onOffAction.actor.show();
             this._accurateItem.actor.hide();
             this._powerSavingItem.actor.hide();
             this._offItem.actor.hide();
         } else {
-            this._onoffAction.actor.hide();
+            this._onOffAction.actor.hide();
             this._accurateItem.actor.show();
             this._powerSavingItem.actor.show();
             this._offItem.actor.show();